package com.cloud.item.client;

import com.cloud.item.FeignClientConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.FeignClientProperties;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
@FeignClient(value = "order-service",configuration = FeignClientConfig.class)           // 指定配置类
public interface OrderClient {

    @GetMapping("/order/{id}")
    Map findById(@PathVariable Integer id);
}
